package gdepot

class SecurityFilters {

    def filters = {
/*        loginCheck(controller:'users', action:'*') {
            before = {

                if(!session.userId && !actionName in ['login','loginCheck','register','logout','save']){
                    redirect(controller: 'users', action: 'login')
                }

            }

        }*/

 /*       ordersCheck(controller:'orders', action:'*') {
            before = {

                if(!session.userId ){
                    redirect(controller: 'users', action: 'login')

                }

            }

        }*/

 /*       goodsCheck(controller:'goods', action:'*') {
            before = {
                if(!session.userId ){
                    redirect(controller: 'users', action: 'login')
                }

            }

        }*/
/*
        categoryCheck(controller:'category', action:'*') {
            before = {
                if(!session.userId ){
                    redirect(controller: 'users', action: 'login')
                }

            }

        }*/
    }


}
